WriteAxisProfileDeceleration
設定軸的曲線減速度 (Profile Deceleration)。
語法
KsError WriteAxisProfileDeceleration(
int Index,
int Value
);
參數
Index:軸的索引。索引以 0 為起始;別名將影響此參數。
Value:寫入的值。
回傳值
若此函式執行成功,會回傳 errNoError
,否則會傳回錯誤碼。如需更多有關錯誤碼的資訊,請參閱 KsError 清單。
備註
- 在週期回呼中使用,以更新軸的曲線減速度 (Profile Deceleration)。
-
此函式只能在手動模式中使用,請見 McControlMode 類型。
注意:曲線減速度 (Profile Deceleration) 僅在 EnableProfilePosition 啟用時才可使用。
可用的 EtherCAT 狀態
ecatOP
範例
複製
nRet = WriteAxisProfileDeceleration(0, 1000);
使用需求
RT | Win32 | |
---|---|---|
最低支援版本 | 4.0 | 4.0 |
標頭檔 | ksapi.h | ksapi.h |
程式庫 | KsApi_Rtss.lib | KsApi.lib |
參見